package com.mtons.mblog.modules.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.mtons.mblog.modules.pojo.Role;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author xiaomi
 * @ClassName: UserVo
 * @Auther: Jerry
 * @Date: 2020/4/4 10:15
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class UserVO implements Serializable {
    private static final long serialVersionUID = 3457018807876286669L;
    private long id;
    private String username;

    @JSONField(serialize = false)
    private String password;
    private String avatar;
    private String name;

    @JSONField(serialize = false)
    private String email;

    private int integral; // 积分
    private int posts; // 文章数
    private int comments; // 发布评论数
    private int fans; // 粉丝数

    private Date created;
    private Date lastLogin;
    private String signature; // 个性签名

    private int status;

    @JSONField(serialize = false)
    private List<Role> roles = new ArrayList<>();

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public int getPosts() {
        return posts;
    }

    public void setPosts(int posts) {
        this.posts = posts;
    }

    public int getComments() {
        return comments;
    }

    public void setComments(int comments) {
        this.comments = comments;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
